package apple.eclipse;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import apple.eclipse.views.MonitorView;
import apple.eclipse.views.NavigatorView;

public class Perspective implements IPerspectiveFactory {

   public void createInitialLayout(IPageLayout layout) {
      String editorArea = layout.getEditorArea();
      layout.setEditorAreaVisible(false);
      layout.addView(NavigatorView.ID, IPageLayout.LEFT, 1.0f, editorArea);
      IFolderLayout monitors = layout.createFolder("monitors",
            IPageLayout.RIGHT, 0.2f, NavigatorView.ID);
      monitors.addPlaceholder(MonitorView.ID + ":*");
   }
}
